;; This gnus config is for Gmail Reading and Sending in Emacs 24 on FreeBSD 9.1RC3
;; Configuration of ~/.gnus.el

;; Customize the next three lines with your ISP information.
(load "starttls")
(load-library "smtpmail")

(setq user-mail-address "pk.htut@gmail.com")
(setq user-full-name "Phone Kyaw Htut")

;; Configure incoming mail (IMAP)
(setq gnus-select-method '(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-authinfo-file "~/.imap-authinfo")
(nnimap-stream ssl)))

;; Configure outbound mail (SMTP)
(setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-default-smtp-server "smtp.gmail.com"
send-mail-function 'smtpmail-send-it
message-send-mail-function 'smtpmail-send-it
smtpmail-smtp-service 587
smtpmail-auth-credentials '(("smtp.gmail.com" 587 "pk.htut@gmail.com" "passwd"))
smtpmail-debug-info t
smtpmail-debug-verb t
)
(setq smtpmail-local-domain nil)
(setq gnus-permanently-visible-groups "gmail")
(executable-find starttls-program)
